package org.mags.dao.common;

public class EntityProperties {
	private String rootAlias;
	private String[] associationPaths;
	private final static String[] DEFAULT_ASSOCIATION_PATHS = new String[0];
	
	public EntityProperties(String[] associationPaths, String rootAlias) {
		this.rootAlias = rootAlias;
		this.associationPaths = associationPaths;
	}
	public EntityProperties(String[] associationPaths) {
		this.associationPaths = associationPaths;
	}
	public EntityProperties() {
	}
	public String[] getAssociationPaths() {
		if(associationPaths==null)
			associationPaths = DEFAULT_ASSOCIATION_PATHS;
		return associationPaths;
	}
	public void setAssociationPaths(String[] associationPaths) {
		this.associationPaths = associationPaths;
	}
	public String getRootAlias() {
		return rootAlias;
	}
	public void setRootAlias(String rootAlias) {
		this.rootAlias = rootAlias;
	}
}
